<?php
require('includes/top.php');

$acc_id = $_POST['accessoriesdata_id'];
$acc = $_POST['accessories'];
$des = $_POST['description'];

$sql = "UPDATE accessories_data SET `accessories_name` = '".$acc."', `description` = '".$des."' where accessoriesdata_id='".trim($acc_id)."'";
$result=mysql_query($sql);


if($result>0)
{
header('Location: accessories_details.php?v=success');
}
else
{
header('Location: accessories_details.php?v=err');
}
?>